package com.hn.zhijian.base.model.response;

import lombok.Data;
import java.util.Date;

/**
 * @author carl chen
 */
@Data
public class Response {

    /**
     * 状态码
     */

    private int code;

    /**
     * 状态描述信息
     */
    private String message;

    /**
     * 响应主体
     */
    private Object body;

    /**
     * 服务器时间
     */
    private Date now;


    public Response() {
    }

    public Response(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Response(int code, String message, Object body) {
        this.code = code;
        this.message = message;
        this.body = body;
        this.now = new Date();
    }
}
